﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace Lk.Common
{
    public static class Extensions
    {
        public static IServiceCollection AddWkMnvDI(this IServiceCollection services)
        {
            return services;
        }

        public static IApplicationBuilder UseWkMnvDI(this IApplicationBuilder builder)
        {
            DI.ServiceProvider = builder.ApplicationServices;
            return builder;
        }

    }
    public static class DI
    {
        public static IServiceProvider ServiceProvider
        {
            get; set;
        }
    }

}
